﻿using System.ComponentModel.DataAnnotations;

namespace YiSha.Core.DynamicData;

public class ControlMenu
{
    [Key]
    public int Id { get; set; }
    /// <summary>
    /// 父编号
    /// </summary>
    public int ParentId { get; set; }
    public OriginalTable Table { get; set; }
    public string TableId { get; set; }
    /// <summary>
    /// 菜单名称
    /// </summary>
    public string MenuName { get; set; }
    public MenuType MenuType { get; set; }
    /// <summary>
    /// 导杭栏显示名称
    /// </summary>
    public string DisplayName { get; set; }
    /// <summary>
    /// 图标
    /// </summary>
    public string Icon { get; set; }
    /// <summary>
    /// 是否可见
    /// </summary>
    public bool IsVisible { get; set; }
    public DateTime CreateTime { get; set; }
}

public enum MenuType
{
    None = 0,
    List = 1,
    Create = 2,
    Update = 3,
    Button = 4,
}
